import org.springframework.context.ApplicationContext;

/**
 * Created with IntelliJ IDEA.
 * User: Alex
 * Date: 8/15/13
 * Time: 11:11 AM
 * To change this template use File | Settings | File Templates.
 */
public class ApplicationContainer {
    private final XServer xServer;
    private final ApplicationContext context;
    private final ApplicationContext coreContext;

    public ApplicationContainer(XServer xServer,
                                ApplicationContext context,
                                ApplicationContext coreContext) {
        this.xServer = xServer;
        this.context = context;
        this.coreContext = coreContext;
    }

    public XServer getxServer() {
        return xServer;
    }

    public ApplicationContext getContext() {
        return context;
    }

    public ApplicationContext getCoreContext() {
        return coreContext;
    }

    public void startMessanger() throws Exception {
        this.xServer.start();
    }
}
